import java.util.ArrayList;
import java.util.List;


public class CarBean {

	private List<Car> cars= new ArrayList<Car>();
	
	
	private Car myCar = new Car();
	
	public void addCar(){
	
		getCars().add(getMyCar());
		setMyCar(new Car());
		
	}
	
	public void removeCar(){
		
		getCars().remove(getMyCar());
		setMyCar(new Car());
		
	}

    public void editCar(){
		
		getCars().remove(getMyCar());
		setMyCar(new Car());
		
	}
	public void aracSil() {
		System.out.println("Arac Siliniyor...");

	}
	public void setCars(List<Car> cars) {
		this.cars = cars;
	}

	public List<Car> getCars() {
		return cars;
	}

	public void setMyCar(Car myCar) {
		this.myCar = myCar;
	}

	public Car getMyCar() {
		return myCar;
	}
	
	
}
